package bussinessLogicInterface;

import java.rmi.Remote;
import java.util.ArrayList;

import others.OrderStateEnum;
import others.ResultMessage;

import dataPO.*;

public interface ManageInterface extends Remote{

	// method for managing order 
	public ArrayList<OrderPO> getOrder(String name);	
	public OrderPO getOrder(String name,int id);
	public ResultMessage changeOrderState(OrderPO op,  OrderStateEnum state);
	 
	 
	// method for  customer	 
	public CustomerPO getCustomerPO(String name);
	public ArrayList<CustomerPO> getCustomer();
	public ResultMessage giveEquivalentCoupons(String name,EquivalentCouponsPO e,int n);
	public ResultMessage giveDiscountCoupons(String name,DiscountCouponsPO d,int n);
	 
	//method for adjust book 
	 
	//public ArrayList<BookPO>  getBook(String ISBN);
	 
	public ResultMessage setBookInfo (String isbn,String title, String author,String press, double price , String publishingTime,String cat,int n);
	public ResultMessage addBook(int n, String a, String iString, String tString, String pString, double pri, String ptString,String catalog);
	public ResultMessage removeBook(String ISBN);
 

}
